-
Notifications
You must be signed in to change notification settings - Fork 20
fix: some misc backend issues #426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: some misc backend issues #426
Conversation
|
Ended up setting license-file to none until we get something like this in: prefix-dev/rattler-build#1947 we won't really be able to handle this correct for out-of-tree builds. We should think of a solution though :) |
- Modified license_file() method to return None with TODO comment - Updated test assertions to expect None instead of filename - Removed broken license_file tests - Updated snapshots to reflect missing license_file field
ruben-arts
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only a question about the validation alias for debug-dir. Rest looks good.
The RustBackendConfig struct uses #[serde(rename_all = "kebab-case")], which means it already only accepts debug-dir (with hyphen), not debug_dir (with underscore). This test documents and verifies this behavior.
All backend configurations now accept both kebab-case (debug-dir) and snake_case (debug_dir) for the debug_dir field using serde's alias attribute. This provides better flexibility for users who may be familiar with either naming convention. Changes: - Added #[serde(alias = "debug_dir")] to debug_dir fields in: - RustBackendConfig - PythonBackendConfig - CMakeBackendConfig - MojoBackendConfig - RattlerBuildBackendConfig - TestBackendConfig - Updated PyBackendConfig custom deserializer to check for both formats - Updated test to verify both formats are accepted
|
@ruben-arts we should allow both now :) |
This fixes some of the misc backend issues:
debug-diranddebug_dirwere mixed up,debug-diris used by this backend anddebug_diris used by pixi. I want to change pixi to allow for both as well.